Skip to content

ci(deploy): per-job permissions for docs + docker#2473

Open
arpitjain099 wants to merge 2 commits into
cloudflare:masterfrom
arpitjain099:ci/add-permissions
Open

ci(deploy): per-job permissions for docs + docker#2473
arpitjain099 wants to merge 2 commits into
cloudflare:masterfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Declares per-job permissions blocks on the two jobs in deploy.yml:

  • docs uses crazy-max/ghaction-github-pages@v3 to push the generated rustdoc to the gh-pages branch, so it needs contents: write for the default GITHUB_TOKEN.
  • docker logs in to DockerHub with DOCKER_USERNAME + DOCKER_TOKEN and runs make docker-publish — the GitHub token isn't used after checkout, so contents: read is sufficient.

Other workflows here (stable.yml, nightly.yml, semgrep.yml) already declare their own permissions blocks. YAML validated with yaml.safe_load.

- docs job: contents: write — needed because
  crazy-max/ghaction-github-pages@v3 pushes built docs to gh-pages
  using GITHUB_TOKEN.
- docker job: contents: read — DockerHub push uses
  secrets.DOCKER_USERNAME/DOCKER_TOKEN, so GITHUB_TOKEN only needs
  read access to the checkout.

Matches the per-workflow permissions pattern already in stable.yml
and nightly.yml.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@arpitjain099 arpitjain099 requested a review from a team as a code owner May 13, 2026 10:46
@arpitjain099
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@arpitjain099
Copy link
Copy Markdown
Author

Hi @antoniovicente, gentle ping on this. PR has been open for 4 days without review. I noticed you've been on the recent-merger side of recent merges in this repo. When you have a moment, would you mind giving it a quick look? No urgency. Happy to address any feedback.

@arpitjain099
Copy link
Copy Markdown
Author

Following up to see if this is still worth pursuing. Happy to iterate if it is. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant